package ma.ac.onousc.gestionfi.EngagementPaiement.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class OrdrePaiementAnnulation implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int idOPA;
	private String numOPA;
	@Temporal(TemporalType.TIMESTAMP)
	private Date dateOPA;

	@OneToMany(mappedBy = "ordrePaiementAnnulation")
	private List<OrdrePaiement> ordrePaiement;
	
	

	public OrdrePaiementAnnulation(String numOPA, Date dateOPA) {
		super();
		this.numOPA = numOPA;
		this.dateOPA = dateOPA;
	}



	public OrdrePaiementAnnulation() {
		super();
	}



	public int getIdOPA() {
		return idOPA;
	}

	public void setIdOPA(int idOPA) {
		this.idOPA = idOPA;
	}

	public String getNumOPA() {
		return numOPA;
	}

	public void setNumOPA(String numOPA) {
		this.numOPA = numOPA;
	}

	public Date getDateOPA() {
		return dateOPA;
	}

	public void setDateOPA(Date dateOPA) {
		this.dateOPA = dateOPA;
	}

	public List<OrdrePaiement> getOrdrePaiement() {
		return ordrePaiement;
	}

	public void setOrdrePaiement(List<OrdrePaiement> ordrePaiement) {
		this.ordrePaiement = ordrePaiement;
	}

}